Date format elements

d
dd
ddd
dddd
Day
Day (two digits)
Day of week (abbreviated)
Day of week (full)
M
MM
MMM
MMMM
Month
Month (two digits)
Month name (abbreviated)
Month name (full)
yy
yyyy
Year (two digits)
Year (four digits)
ggPeriod/era (not used with Western calendar systems)
w
ww
Week number (determined according to ISO8601 *)
Week number (2 digits)
D
DDD
Day of year
Day of year (3 digits)


Note
  • These elements are case sensitive.
  • * Briefly, ISO8601 states that each week begins on a Monday, and week #1 of any year is the first week that contains January 4.